/*
 * @Author: your name
 * @Date: 2020-03-26 09:41:08
 * @LastEditTime: 2020-03-26 09:41:10
 * @LastEditors: Please set LastEditors
 * @Description: 闹闹派单
 */

// 登录
export const getLogin = "https://bd.huitou51.net/public/index.php/apis/login"
// 获取买号
export const getAccountList = "https://bd.huitou51.net/public/index.php/apis/total_wang"
// 获取任务
export const getTaskList = "https://bd.huitou51.net/apis/pai_dan"
// 接单
export const getAcceptTask = "https://bd.huitou51.net/apis/jie_dan"

export function ajaxFun(url, param, fun) {
    window.api.ajax({
        url: url,
        method: param.type,
        headers: param.headers,
        dataType: 'json',
        returnAll: false,
        async: false,
        data: {
            values: param.data
        }
    }, fun)
}